package com.lscdu.gulimall.ruoyi_springboot.utis.security;

import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;

/**
 * @author 啊昌
 * @date 2024/9/10 13:28
 * SecurityUtils 安全服务工具类
 */
public class SecurityUtils {
	/**
	 * 获取Authentication
	 */
	public static Authentication getAuthentication() {
		return SecurityContextHolder.getContext().getAuthentication();
	}
}
